package com.xhtt.modules.cfg.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.common.utils.Query;
import com.xhtt.modules.cfg.dao.CfgWarnTaskMapper;
import com.xhtt.modules.cfg.entity.CfgTubeInfo;
import com.xhtt.modules.cfg.entity.CfgWarnTask;
import com.xhtt.modules.cfg.service.CfgWarnTaskService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 计划任务报警设置 服务实现类
 * </p>
 *
 * @author feipc
 * @since 2019-04-10
 */
@Service
public class CfgWarnTaskServiceImpl extends ServiceImpl<CfgWarnTaskMapper, CfgWarnTask> implements CfgWarnTaskService {

    @Override
    public PageUtils taskList(Map<String, Object> params) {
        Page<CfgWarnTask> page = new Query<CfgWarnTask>(params).getPage();
        List<CfgWarnTask> list = baseMapper.taskList(page, params);
        page.setRecords(list);
        return new PageUtils(page);
    }
}
